package com.exam.service;
import com.exam.entity.StudentScore;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface StudentScoreService {

    // 分页查询学生的成绩
    Page<StudentScore> getScoresByStudentId(Integer studentId, Pageable pageable);

    // 获取学生指定课程的成绩
    List<StudentScore> getScoresByStudentIdAndCourse(Integer studentId, String courseName);

    // 保存或更新成绩
    StudentScore saveOrUpdateScore(StudentScore studentScore);

    // 删除成绩记录
    void deleteScoreById(Integer scoreId);
}